﻿using System;
using System.Collections.Generic;
using System.Text;

namespace TimKen.DataEntity
{
    /// <summary>
    /// 站内信息实体类
    /// </summary>
    public class Inbox
    {
        public Inbox()
        { }
        #region Model
        private int _msgid;
        private string _msgno;
        private string _title;
        private string _fromid;
        private string _toid;
        private string _message;
        private bool _fromdelete;
        private bool _todelete;
        private bool _isread;
        private int _toall;
        private DateTime? _createdate;
        /// <summary>
        /// 
        /// </summary>
        public int MsgID
        {
            set { _msgid = value; }
            get { return _msgid; }
        }

        /// <summary>
        /// 
        /// </summary>
        public string MsgNo
        {
            set { _msgno = value; }
            get { return _msgno; }
        }

        /// <summary>
        /// 标题
        /// </summary>
        public string Title
        {
            set { _title = value; }
            get { return _title; }
        }

        /// <summary>
        /// 发送者（UserAccount）
        /// </summary>
        public string FromID
        {
            set { _fromid = value; }
            get { return _fromid; }
        }
        /// <summary>
        /// 接收者（UserAccount）
        /// </summary>
        public string ToID
        {
            set { _toid = value; }
            get { return _toid; }
        }
        /// <summary>
        /// 信息详情
        /// </summary>
        public string Message
        {
            set { _message = value; }
            get { return _message; }
        }
        /// <summary>
        /// 发送者是否删除
        /// </summary>
        public bool FromDelete
        {
            set { _fromdelete = value; }
            get { return _fromdelete; }
        }
        /// <summary>
        /// 阅读者是否删除
        /// </summary>
        public bool ToDelete
        {
            set { _todelete = value; }
            get { return _todelete; }
        }
        /// <summary>
        /// 是否已读
        /// </summary>
        public bool IsRead
        {
            set { _isread = value; }
            get { return _isread; }
        }
        /// <summary>
        /// 群发邮件
        /// 0为单独发送，1为群发，2为发送给部分
        /// </summary>
        public int ToAll
        {
            set { _toall = value; }
            get { return _toall; }
        }
        /// <summary>
        /// 发送日期
        /// </summary>
        public DateTime? CreateDate
        {
            set { _createdate = value; }
            get { return _createdate; }
        }
        #endregion Model

    }
}

